import requests
import json
data = {

    'a':1,
    'b':2,
    'method':'div'
}
headers = {'Content-Type': 'application/json'}
li=['/api/v1/a','/api/v1/b','/api/collection']
a = requests.get(url='http://127.0.0.1:5000/api/collection')
print(a.json())

b = requests.post(url='http://127.0.0.1:5000/api/', data=json.dumps(data), headers=headers)
print(b.json())
